// 用户模块路由

const express = require('express')
const fileUpload = require('express-fileupload');
const router = express.Router()

// 引入处理函数模块
const auth = require('../router_handler/auth')

// 管理员注册/添加
router.post('/register',fileUpload({createParentPath: true}), auth.register)
// 管理员登录
router.post('/login', auth.login)

module.exports = router